<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //函数对象
        function Phone() {

        }
        //是函数对象的属性,在面向对象中，是属于类的, 称为静态成员
        Phone.name = '手机';
        Phone.change = function() {
                console.log('我可以改变世界！');
            }
            //原型对象
        Phone.prototype.size = '5.5inch';
        //实例对象
        let nokia = new Phone();
        console.log(nokia.size);


        class Phone {
            static name = '手机'; //对于static标注的属性和方法是属于类的，而不属于实例对象
            static change() {
                console.log('我可以改变世界！');
            }
        }
    </script>
</body>

</html>